package com.sc.nft.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dao.MallOrderIncomeDao;
import com.sc.nft.entity.MallOrderIncome;
import com.sc.nft.entity.vo.minimall.WxMiniMallDistributionVO;
import com.sc.nft.service.WxMiniDistributionUserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author JYT
 * @create 2024/5/21 15:06
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class WxMiniDistributionUserServiceImpl implements WxMiniDistributionUserService {

    private final MallOrderIncomeDao mallOrderIncomeDao;

    /**
     * 分销订单列表
     *
     * @param userTel
     * @param pageNo
     * @param pageSize
     * @return
     */
    @Override
    public IPage<WxMiniMallDistributionVO> adminPage(String userTel, Integer pageNo, Integer pageSize) {
        return mallOrderIncomeDao.miniMallDistributionUserPage(userTel,new Page(pageNo,pageSize));
    }
}
